package kxfang.com.common.bean;

import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;

import java.util.List;

import kxfang.com.common.constant.Constant;


/**
 * 订单详情
 */
public class OrderListDetailModel implements Parcelable {

    private OrderBean order;
    private CouponModel card;
    private AddressPack address;
    private StoreDetailModel store;
    private List<GoodsDetailModel> storeGoodsList;


    protected OrderListDetailModel(Parcel in) {
        card = in.readParcelable(CouponModel.class.getClassLoader());
        address = in.readParcelable(AddressPack.class.getClassLoader());
        store = in.readParcelable(StoreDetailModel.class.getClassLoader());
        storeGoodsList = in.createTypedArrayList(GoodsDetailModel.CREATOR);
    }

    public static final Creator<OrderListDetailModel> CREATOR = new Creator<OrderListDetailModel>() {
        @Override
        public OrderListDetailModel createFromParcel(Parcel in) {
            return new OrderListDetailModel(in);
        }

        @Override
        public OrderListDetailModel[] newArray(int size) {
            return new OrderListDetailModel[size];
        }
    };

    public OrderBean getOrder() {
        return order;
    }

    public void setOrder(OrderBean order) {
        this.order = order;
    }

    public CouponModel getCard() {
        return card;
    }

    public void setCard(CouponModel card) {
        this.card = card;
    }

    public AddressPack getAddress() {
        return address;
    }

    public void setAddress(AddressPack address) {
        this.address = address;
    }

    public List<GoodsDetailModel> getStoreGoodsList() {
        return storeGoodsList;
    }

    public void setStoreGoodsList(List<GoodsDetailModel> storeGoodsList) {
        this.storeGoodsList = storeGoodsList;
    }

    public StoreDetailModel getStore() {
        return store;
    }

    public void setStore(StoreDetailModel store) {
        this.store = store;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(card, flags);
        dest.writeParcelable(address, flags);
        dest.writeParcelable(store, flags);
        dest.writeTypedList(storeGoodsList);
    }


    public static class OrderBean implements Parcelable {
        private String GoodsMealID;
        private String Id;
        private String CompanyName;
        private String GoodsPic;
        private String OrderTime;
        private String PayTime;
        private String UseTime;
        private String OrginalPrice;
        private String SalePrice;
        private String Phone;
        private int orderStatu;//订单状态 1 待付款 2 待完成【已支付】 3 已完成 4 退款 5 取消 6 使用中 10 未评价 11 已评价 50退款中 51退款成功 52代发货 53已发货
        private String OrderNo;
        private String GoodsName;
        private int OrderType;//订单类型 1 商品 2 卡劵 ,
        private String Reward;
        private String Label;
        private String AppointMent;
        private String GoodsID;
        private String FaceValue;
        private String CompanyID;
        private int OrderNum;
        private String QRUrl;
        private String OrderContactor;
        private String BusinessTime;
        private String RefundMemo;
        private int PayType;// 支付方式，1，微信；2，支付宝；3，小程序
        private String CMemo;// 备注
        private String DistributionTime;// 配送时间
        private String DistributionFee;// 配送费
        private String Distributiontype;//配送方式
        private String RUserID;//店铺用户ID ,
        private String RefundCmemo;//退款原因
        private String RefundDate;//退款时间
        private String Logo;// 店铺logo
        private String Address;//地址
        private double RiderLat;
        private double RiderLng;
        private String PackingFee;//打包费
        private int IsStoreCus;//是否门店新客
        private String StoreReduce;//门店新客立减金额
        private CardInfos CardInfos;
        private int IndustryValue;
        private String SysCardPrice;
        private String CmpOrderSumPrice;
        private String OldDistributionFee;
        private List<PayDetail> payDetail;
        private double FullReduce; //满减

        public double getFullReduce() {
            return  FullReduce;

        }

        public void setFullReduce(double fullReduce) {
            FullReduce = fullReduce;
        }

        public List<PayDetail> getPayDetail() {
            return payDetail;
        }

        public void setPayDetail(List<PayDetail> payDetail) {
            this.payDetail = payDetail;
        }

        public String getOldDistributionFee() {
            if (TextUtils.isEmpty(OldDistributionFee) || Double.parseDouble(OldDistributionFee) == 0) {
                return  "¥0.00";
            }
            return "¥" + OldDistributionFee;
        }

        public void setOldDistributionFee(String oldDistributionFee) {
            OldDistributionFee = oldDistributionFee;
        }

        public CardInfos getCardInfos() {
            return CardInfos;
        }

        public void setCardInfos(CardInfos cardInfos) {
            this.CardInfos = cardInfos;
        }

        protected OrderBean(Parcel in) {
            payDetail=in.createTypedArrayList(PayDetail.CREATOR);
            GoodsMealID = in.readString();
            Id = in.readString();
            CompanyName = in.readString();
            GoodsPic = in.readString();
            OrderTime = in.readString();
            PayTime = in.readString();
            UseTime = in.readString();
            OrginalPrice = in.readString();
            SalePrice = in.readString();
            Phone = in.readString();
            orderStatu = in.readInt();
            OrderNo = in.readString();
            GoodsName = in.readString();
            OrderType = in.readInt();
            Reward = in.readString();
            Label = in.readString();
            AppointMent = in.readString();
            GoodsID = in.readString();
            FaceValue = in.readString();
            CompanyID = in.readString();
            OrderNum = in.readInt();
            QRUrl = in.readString();
            OrderContactor = in.readString();
            BusinessTime = in.readString();
            RefundMemo = in.readString();
            PayType = in.readInt();
            CMemo = in.readString();
            DistributionTime = in.readString();
            DistributionFee = in.readString();
            OldDistributionFee = in.readString();
            Distributiontype = in.readString();
            RUserID = in.readString();
            RefundCmemo = in.readString();
            RefundDate = in.readString();
            Logo = in.readString();
            Address = in.readString();
            PickUpCode = in.readString();
            goodsList = in.createTypedArrayList(GoodsDetailModel.CREATOR);
            OrderGoodsList = in.createTypedArrayList(GoodsDetailModel.CREATOR);
            EvalueState = in.readInt();
            RiderLat = in.readDouble();
            RiderLng = in.readDouble();
            PackingFee = in.readString();
            IsStoreCus = in.readInt();
            StoreReduce = in.readString();
            IndustryValue = in.readInt();
            SysCardPrice =in.readString();
            CmpOrderSumPrice=in.readString();
        }

        public static final Creator<OrderBean> CREATOR = new Creator<OrderBean>() {
            @Override
            public OrderBean createFromParcel(Parcel in) {
                return new OrderBean(in);
            }

            @Override
            public OrderBean[] newArray(int size) {
                return new OrderBean[size];
            }
        };

        public int getIsStoreCus() {
            if (TextUtils.isEmpty(StoreReduce)) {
                IsStoreCus = 0;
            }
            return IsStoreCus;
        }

        public String getSysCardPrice() {
            return SysCardPrice;
        }

        public void setSysCardPrice(String sysCardPrice) {
            SysCardPrice = sysCardPrice;
        }

        public String getCmpOrderSumPrice() {
            return CmpOrderSumPrice;
        }

        public void setCmpOrderSumPrice(String cmpOrderSumPrice) {
            CmpOrderSumPrice = cmpOrderSumPrice;
        }

        public int getIndustryValue() {
            return IndustryValue;
        }

        public void setIndustryValue(int industryValue) {
            IndustryValue = industryValue;
        }

        public void setIsStoreCus(int isStoreCus) {
            IsStoreCus = isStoreCus;
        }

        public String getStoreReduce() {
            return StoreReduce;
        }

        public void setStoreReduce(String storeReduce) {
            StoreReduce = storeReduce;
        }

        public double getRiderLat() {
            return RiderLat;
        }

        public void setRiderLat(double riderLat) {
            RiderLat = riderLat;
        }

        public double getRiderLng() {
            return RiderLng;
        }

        public void setRiderLng(double riderLng) {
            RiderLng = riderLng;
        }

        public String getPickUpCode() {
            return PickUpCode;
        }

        public void setPickUpCode(String pickUpCode) {
            PickUpCode = pickUpCode;
        }

        private String PickUpCode;
        private List<GoodsDetailModel> goodsList;
        private List<GoodsDetailModel> OrderGoodsList;
        private int EvalueState;// 0 未评价 1 已评价

        public String getGoodsMealID() {
            return GoodsMealID;
        }

        public void setGoodsMealID(String GoodsMealID) {
            this.GoodsMealID = GoodsMealID;
        }

        public String getId() {
            return Id;
        }

        public void setId(String Id) {
            this.Id = Id;
        }

        public String getCompanyName() {
            return CompanyName;
        }

        public void setCompanyName(String CompanyName) {
            this.CompanyName = CompanyName;
        }

        public String getGoodsPic() {
            return GoodsPic;
        }

        public void setGoodsPic(String GoodsPic) {
            this.GoodsPic = GoodsPic;
        }

        public String getAddress() {
            return Address;
        }

        public void setAddress(String address) {
            Address = address;
        }

        public String getOrderTime() {
            return OrderTime;
        }

        public void setOrderTime(String OrderTime) {
            this.OrderTime = OrderTime;
        }

        public String getPayTime() {
            return PayTime;
        }

        public void setPayTime(String PayTime) {
            this.PayTime = PayTime;
        }

        public String getUseTime() {
            return UseTime;
        }

        public void setUseTime(String UseTime) {
            this.UseTime = UseTime;
        }

        public String getPhone() {
            return Phone;
        }

        public void setPhone(String Phone) {
            this.Phone = Phone;
        }

        public int getOrderStatu() {
            return orderStatu;
        }

        public void setOrderStatu(int orderStatu) {
            this.orderStatu = orderStatu;
        }

        public String getOrderNo() {
            return OrderNo;
        }

        public void setOrderNo(String OrderNo) {
            this.OrderNo = OrderNo;
        }

        public String getGoodsName() {
            return GoodsName;
        }

        public void setGoodsName(String GoodsName) {
            this.GoodsName = GoodsName;
        }

        public int getOrderType() {
            return OrderType;
        }

        public void setOrderType(int OrderType) {
            this.OrderType = OrderType;
        }

        public String getLabel() {
            return Label;
        }

        public void setLabel(String Label) {
            this.Label = Label;
        }

        public String getAppointMent() {
            return AppointMent;
        }

        public void setAppointMent(String AppointMent) {
            this.AppointMent = AppointMent;
        }

        public String getGoodsID() {
            return GoodsID;
        }

        public void setGoodsID(String GoodsID) {
            this.GoodsID = GoodsID;
        }

        public String getCompanyID() {
            return CompanyID;
        }

        public void setCompanyID(String CompanyID) {
            this.CompanyID = CompanyID;
        }

        public int getOrderNum() {
            return OrderNum;
        }

        public void setOrderNum(int OrderNum) {
            this.OrderNum = OrderNum;
        }

        public String getQRUrl() {
            return QRUrl;
        }

        public void setQRUrl(String QRUrl) {
            this.QRUrl = QRUrl;
        }

        public String getOrderContactor() {
            return OrderContactor;
        }

        public void setOrderContactor(String OrderContactor) {
            this.OrderContactor = OrderContactor;
        }

        public String getBusinessTime() {
            return BusinessTime;
        }

        public void setBusinessTime(String BusinessTime) {
            this.BusinessTime = BusinessTime;
        }

        public String getRefundMemo() {
            return RefundMemo;
        }

        public void setRefundMemo(String RefundMemo) {
            this.RefundMemo = RefundMemo;
        }

        public List<GoodsDetailModel> getGoodsList() {
            return goodsList;
        }

        public void setGoodsList(List<GoodsDetailModel> goodsList) {
            this.goodsList = goodsList;
        }

        public String getOrginalPrice() {
            return OrginalPrice;
        }

        public void setOrginalPrice(String orginalPrice) {
            OrginalPrice = orginalPrice;
        }

        public String getSalePrice() {
            return SalePrice;
        }

        public void setSalePrice(String salePrice) {
            SalePrice = salePrice;
        }

        public String getReward() {
            return Reward;
        }

        public void setReward(String reward) {
            Reward = reward;
        }

        public String getFaceValue() {
            return FaceValue;
        }

        public void setFaceValue(String faceValue) {
            FaceValue = faceValue;
        }

        public int getPayType() {
            return PayType;
        }

        public void setPayType(int payType) {
            PayType = payType;
        }

        public String getDistributiontype() {
            return Distributiontype;
        }

        public void setDistributiontype(String distributiontype) {
            Distributiontype = distributiontype;
        }

        public String getRUserID() {
            return RUserID;
        }

        public void setRUserID(String RUserID) {
            this.RUserID = RUserID;
        }

        public String getRefundCmemo() {
            String replace = RefundCmemo.replace(Constant.SPLIT, "\n");
//            binding.remark.setText(Html.fromHtml(replace));
            return replace;
        }

        public void setRefundCmemo(String refundCmemo) {
            RefundCmemo = refundCmemo;
        }

        public String getRefundDate() {
            return RefundDate;
        }

        public void setRefundDate(String refundDate) {
            RefundDate = refundDate;
        }

        public String getLogo() {
            return Logo;
        }

        public void setLogo(String logo) {
            Logo = logo;
        }

        public int getEvalueState() {
            return EvalueState;
        }

        public void setEvalueState(int evalueState) {
            EvalueState = evalueState;
        }

        public List<GoodsDetailModel> getOrderGoodsList() {
            return OrderGoodsList;
        }

        public void setOrderGoodsList(List<GoodsDetailModel> orderGoodsList) {
            OrderGoodsList = orderGoodsList;
        }

        public String getDistributionFee() {
            if (TextUtils.isEmpty(DistributionFee)) {
                return "0";
            }
            return DistributionFee;
        }

        public void setDistributionFee(String distributionFee) {
            DistributionFee = distributionFee;
        }

        public String getPackingFee() {
            if (TextUtils.isEmpty(PackingFee)) {
                return "0";
            }
            return PackingFee;
        }

        public void setPackingFee(String packingFee) {
            PackingFee = packingFee;
        }

        public String getCMemo() {
            if (TextUtils.isEmpty(CMemo)) {
                return "暂无备注";
            }
            return CMemo;
        }

        public void setCMemo(String CMemo) {
            this.CMemo = CMemo;
        }

        public String getDistributionTime() {
            return DistributionTime;
        }

        public void setDistributionTime(String distributionTime) {
            DistributionTime = distributionTime;
        }

        public String getDistributionFeeStr() {
            if (TextUtils.isEmpty(DistributionFee) || Double.parseDouble(DistributionFee) == 0) {
                return "¥0.00";
            }
            return "¥" + DistributionFee;
        }

        // 1 待付款 2 待完成【已支付】 3 已完成 4 退款 5 取消 10 未评价 11已评价 50退款中 51退款成功 52代发货 53已发货 ,
        public String getStatusStr() {
            switch (orderStatu) {
                case -1:
                    return "订单已关闭";
                case 1:
                    return "等待付款";
                case 2:
                case 53:
                    if (isSelf()) {
                        if (IndustryValue != 6)
                            return "待提货";
                        return "待完成";
                    }
                    return "等待商家接单";
                case 4:
                case 5:
                    return "订单已取消";
                case 3:
                case 10:
                case 11:
                    return "订单已完成";
                case 1000:
                case 1002:
                    return "商家已接单";
                case 1001:
                    return "骑手已接单";
            }
            return "";
        }

        /**
         * 商家的状态显示
         *
         * @return
         */
        public String getStoreStatusStr() {
            switch (orderStatu) {
                case 2:
                    if (isSelf()) {
                        if (IndustryValue != 6)
                            return "待自提";
                        return "待完成";
                    }
                    return "待配送";
                case 3:
                    return "已完成";
                case 4:
                    return "待退款";
//                case 5:
//                case 10:
//                case 11:
//                    return "订单已完成";
            }
            return "";
        }

        //1 待付款 2 待完成【已支付】 3 已完成 4 退款 5 取消
        public String getStr() {
            switch (orderStatu) {
                case -1:
                    return "您的订单已关闭，请重新下单";
                case 1:
                    if (isSelf()) {
                        return "支付后尽快为您备货";
                    }
                    return "支付后尽快为您送达";
                case 2:
                    if (isSelf()) {
                        return "商家备货中，请耐心等待!";
                    }
                    return "您的订单正在飞向您的路上，请耐心等待";
                case 4:
                case 5:
                    return "您已取消订单，欢迎下次购买";
                case 3:
                case 10:
                case 11:
                    return "感谢您的支持，如有问题可联系我们";
                case 53:
                    if (isSelf()) {
                        return " 您的订单商家已备货完成,请前往提货!";
                    }
                    return "您的订单骑手正在配送，请耐心等待!";
                case 1000:
                case 1002:
                    return "您的订单商家已接单，请耐心等待!";
                case 1001:
                    return "您的订单骑手已接单，请耐心等待!";
            }
            return "";
        }

        public String payStr() {
            if (PayType == 1) {
                return "微信支付";
            } else if (PayType == 2) {
                return "支付宝支付";
            } else if (PayType == 3) {
                return "小程序支付";
            } else {
                return "其他支付";
            }
        }

        /**
         * 是否是自提
         *
         * @return
         */
        public boolean isSelf() {
            if (!TextUtils.isEmpty(Distributiontype) && "自提".equals(Distributiontype)) {
                return true;
            }
            return false;
        }


        //1 待付款 2 待完成【已支付】 3 已完成 4 退款 5 取消
        public String getStatusString() {
            switch (orderStatu) {
                case 1:
                    return "待付款";
                case 2:
                    return isSelf() ? "待自提" : "待配送";
                case 3:
                    return "已完成";
                case 4:
                    return "等待退款";
                case 50:
                    return "退款中";
                case 51:
                    return "退款成功";
                case 53:
                    return isSelf() ? "待自提" : "待收货";
                case 5:
                    return "已取消";
            }
            return "";
        }

        /**
         * 订单时间  格式04-08 12:11
         *
         * @return
         */
        public String orderTimeStr() {
            if (!TextUtils.isEmpty(OrderTime) && OrderTime.contains("-")) {
                int index = OrderTime.indexOf("-");
                return OrderTime.substring(index + 1, OrderTime.length());
            }
            return OrderTime;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public class CardInfos {

            /**
             * Id : null
             * CompanyID : null
             * UserID : 0
             * FaceValue : 0
             * FullReduce : 0
             * SalePrice : 0
             * StartValiDate : 0001-01-01T00:00:00
             * ValiDate : 0001-01-01T00:00:00
             * CMemo : null
             * CStatu : 0
             * CreateDateTime : 0001-01-01T00:00:00
             * UpdTime : 0001-01-01T00:00:00
             * WebID : null
             * AppointMent : null
             * Label : null
             * RemainDay : 0
             * PicUrl : null
             * CardName : null
             * CardNo : null
             * LimitedCount : 0
             * CType : 0
             * EffectiveDays : 0
             * StrGroupBy : null
             */

            private String Id;
            private String CompanyID;
            private int UserID;
            private String FaceValue;
            private double FullReduce;
            private double SalePrice;
            private String StartValiDate;
            private String ValiDate;
            private String CMemo;
            private int CStatu;
            private String CreateDateTime;
            private String UpdTime;
            private String WebID;
            private String AppointMent;
            private String Label;
            private int RemainDay;
            private String PicUrl;
            private String CardName;
            private String CardNo;
            private int LimitedCount;
            private int CType;
            private int EffectiveDays;
            private String StrGroupBy;

            public String getId() {
                return Id;
            }

            public void setId(String Id) {
                this.Id = Id;
            }

            public String getCompanyID() {
                return CompanyID;
            }

            public void setCompanyID(String CompanyID) {
                this.CompanyID = CompanyID;
            }

            public int getUserID() {
                return UserID;
            }

            public void setUserID(int UserID) {
                this.UserID = UserID;
            }

            public String getFaceValue() {
                return FaceValue;
            }

            public void setFaceValue(String FaceValue) {
                this.FaceValue = FaceValue;
            }

            public double getFullReduce() {
                return FullReduce;
            }

            public void setFullReduce(double FullReduce) {
                this.FullReduce = FullReduce;
            }

            public double getSalePrice() {
                return SalePrice;
            }

            public void setSalePrice(double SalePrice) {
                this.SalePrice = SalePrice;
            }

            public String getStartValiDate() {
                return StartValiDate;
            }

            public void setStartValiDate(String StartValiDate) {
                this.StartValiDate = StartValiDate;
            }

            public String getValiDate() {
                return ValiDate;
            }

            public void setValiDate(String ValiDate) {
                this.ValiDate = ValiDate;
            }

            public String getCMemo() {
                return CMemo;
            }

            public void setCMemo(String CMemo) {
                this.CMemo = CMemo;
            }

            public int getCStatu() {
                return CStatu;
            }

            public void setCStatu(int CStatu) {
                this.CStatu = CStatu;
            }

            public String getCreateDateTime() {
                return CreateDateTime;
            }

            public void setCreateDateTime(String CreateDateTime) {
                this.CreateDateTime = CreateDateTime;
            }

            public String getUpdTime() {
                return UpdTime;
            }

            public void setUpdTime(String UpdTime) {
                this.UpdTime = UpdTime;
            }

            public String getWebID() {
                return WebID;
            }

            public void setWebID(String WebID) {
                this.WebID = WebID;
            }

            public String getAppointMent() {
                return AppointMent;
            }

            public void setAppointMent(String AppointMent) {
                this.AppointMent = AppointMent;
            }

            public String getLabel() {
                return Label;
            }

            public void setLabel(String Label) {
                this.Label = Label;
            }

            public int getRemainDay() {
                return RemainDay;
            }

            public void setRemainDay(int RemainDay) {
                this.RemainDay = RemainDay;
            }

            public String getPicUrl() {
                return PicUrl;
            }

            public void setPicUrl(String PicUrl) {
                this.PicUrl = PicUrl;
            }

            public String getCardName() {
                return CardName;
            }

            public void setCardName(String CardName) {
                this.CardName = CardName;
            }

            public String getCardNo() {
                return CardNo;
            }

            public void setCardNo(String CardNo) {
                this.CardNo = CardNo;
            }

            public int getLimitedCount() {
                return LimitedCount;
            }

            public void setLimitedCount(int LimitedCount) {
                this.LimitedCount = LimitedCount;
            }

            public int getCType() {
                return CType;
            }

            public void setCType(int CType) {
                this.CType = CType;
            }

            public int getEffectiveDays() {
                return EffectiveDays;
            }

            public void setEffectiveDays(int EffectiveDays) {
                this.EffectiveDays = EffectiveDays;
            }

            public String getStrGroupBy() {
                return StrGroupBy;
            }

            public void setStrGroupBy(String StrGroupBy) {
                this.StrGroupBy = StrGroupBy;
            }
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(GoodsMealID);
            dest.writeString(Id);
            dest.writeString(CompanyName);
            dest.writeString(GoodsPic);
            dest.writeString(OrderTime);
            dest.writeString(PayTime);
            dest.writeString(UseTime);
            dest.writeString(OrginalPrice);
            dest.writeString(SalePrice);
            dest.writeString(Phone);
            dest.writeInt(orderStatu);
            dest.writeString(OrderNo);
            dest.writeString(GoodsName);
            dest.writeInt(OrderType);
            dest.writeString(Reward);
            dest.writeString(Label);
            dest.writeString(AppointMent);
            dest.writeString(GoodsID);
            dest.writeString(FaceValue);
            dest.writeString(CompanyID);
            dest.writeInt(OrderNum);
            dest.writeString(QRUrl);
            dest.writeString(OrderContactor);
            dest.writeString(BusinessTime);
            dest.writeString(RefundMemo);
            dest.writeInt(PayType);
            dest.writeString(CMemo);
            dest.writeString(DistributionTime);
            dest.writeString(DistributionFee);
            dest.writeString(OldDistributionFee);
            dest.writeString(Distributiontype);
            dest.writeString(RUserID);
            dest.writeString(RefundCmemo);
            dest.writeString(RefundDate);
            dest.writeString(Logo);
            dest.writeString(Address);
            dest.writeString(PickUpCode);
            dest.writeTypedList(goodsList);
            dest.writeTypedList(OrderGoodsList);
            dest.writeInt(EvalueState);
            dest.writeDouble(RiderLat);
            dest.writeDouble(RiderLng);
            dest.writeInt(IsStoreCus);
            dest.writeString(StoreReduce);
            dest.writeInt(IndustryValue);
        }
        public static class PayDetail implements Parcelable {
            private String Id;
            private String OrderNo ;
            private String ItemName ;
            private String ItemValue;
            private String IsDelete;
            private String CreateTime ;

            protected PayDetail(Parcel in) {
                Id = in.readString();
                OrderNo = in.readString();
                ItemName = in.readString();
                ItemValue = in.readString();
                IsDelete = in.readString();
                CreateTime = in.readString();
            }

            public static final Creator<PayDetail> CREATOR = new Creator<PayDetail>() {
                @Override
                public PayDetail createFromParcel(Parcel in) {
                    return new PayDetail(in);
                }

                @Override
                public PayDetail[] newArray(int size) {
                    return new PayDetail[size];
                }
            };

            public String getId() {
                return Id;
            }

            public void setId(String id) {
                Id = id;
            }

            public String getOrderNo() {
                return OrderNo;
            }

            public void setOrderNo(String orderNo) {
                OrderNo = orderNo;
            }

            public String getItemName() {
                return ItemName;
            }

            public void setItemName(String itemName) {
                ItemName = itemName;
            }

            public String getItemValue() {
                return ItemValue;
            }

            public void setItemValue(String itemValue) {
                ItemValue = itemValue;
            }

            public String getIsDelete() {
                return IsDelete;
            }

            public void setIsDelete(String isDelete) {
                IsDelete = isDelete;
            }

            public String getCreateTime() {
                return CreateTime;
            }

            public void setCreateTime(String createTime) {
                CreateTime = createTime;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel parcel, int i) {
                parcel.writeString(Id);
                parcel.writeString(OrderNo);
                parcel.writeString(ItemName);
                parcel.writeString(ItemValue);
                parcel.writeString(IsDelete);
                parcel.writeString(CreateTime);
            }
        }
    }


}
